package com.zhuangjie.mvc.injector;

import com.zhuangjie.mvc.injector.porter.InjectPorter;

/**
 * 声明注入器
 *
 * @author zhuangjie
 * @date 2024/06/14
 */
public class DeclarationInjector {
    public static<P extends InjectPorter> PorterManage<P> usePorter(Class<P> injectPorterClass) {
        if (injectPorterClass == null) {
            throw new IllegalArgumentException("injectPorterClass is null");
        }
        return new PorterManage<>(injectPorterClass);
    }
}
